<?php 
$cid = $_GET['cateid'];
$category = new category();
$info = $category->getdata($cid);
?>
<div id="homelink"> <a href="<?php echo baseurl; ?>">Trang chủ</a> &raquo; <a href="#"><?php echo $info['cate_name']; ?></a> </div>
<div id="homecontent">
  <div class="hotproduct">
    <div class="protitle">
      <h3><?php echo $info['cate_name']; ?></h3>
    </div>
    <div class="procontent">
      <?php 
	  $listproduct = $category->listproduct($cid);
	  if($listproduct != NULL){
	  ?>
      <?php foreach($listproduct as $items){ ?>
      <div class="products"> <a href=""><img src="<?php echo baseurl."uploads/products/".$items['pro_image']; ?>" width="133" height="150" alt=""></a>
        <h3><a href=""><?php echo $items['pro_name']; ?></a></h3>
        <p>Giá : <span class="red"><?php echo $items['pro_price']; ?> vnd</span></p>
      </div>
      <?php } ?>
      <?php }else{ ?>
      <p>Chưa có sản phẩm</p>
      <?php } ?>
    </div>
  </div>
</div>
